﻿CREATE TRIGGER CommitteeBankAccountDepositReceipts_Tracking_Delete
ON [dbo].[CommitteeBankAccountDepositReceipts] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.CommitteeBankAccountDepositReceipts_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.CommitteeBankAccountDepositReceipts_Tracking s JOIN DELETED i
    ON s.CommitteeBankAccountDepositReceiptID = i.CommitteeBankAccountDepositReceiptID
END





